package com.wushijia.datastructure;

public class SeqStack_ex{
    public static void main(String args[])
    {
        SeqStack<String> stack = new SeqStack<String>(20);
        System.out.print("Push: ");
        char ch='a';
        for(int i=0;i<5;i++)
        {
            String str = (char)(ch+i)+"";
            stack.push(str);
            System.out.print(str+"  ");
        }    
        System.out.println("\n"+stack.toString());

        System.out.print("Pop : ");
        while(!stack.isEmpty())           
            System.out.print(stack.pop().toString()+"  ");
        System.out.println();
    }
}